package cn.jnetty.ioc.executer;
import cn.jnetty.ioc.executer.pool.JnettyRunnablePool;

import java.util.concurrent.Executor;

/**
 * @author 猪哥亮
 * @email 1030681978@qq.com
 * @date 2020/4/6 18:30
 * 描述：
 */
public class JnettyExecuter {
    private final JnettyRunnablePool pool;
    public JnettyExecuter(int threadCount) {
        pool = new JnettyRunnablePool(null, threadCount);
    }
    public JnettyExecuter(Executor worker, int threadCount) {
        pool = new JnettyRunnablePool(worker, threadCount);
    }
    public JnettyRunnablePool getPool() {
        return pool;
    }
}
